<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>格式化</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont,
          'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
          'Helvetica Neue', sans-serif;
        background: #f5f5f5;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        width: 300px;
      }

      h3 {
        color: #333;
        margin-bottom: 30px;
        font-size: 24px;
        position: relative;
      }

      h3::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 120px;
        height: 3px;
        background: #1890ff;
        border-radius: 2px;
      }

      .container {
        background: white;
        padding: 30px;
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
        width: 300px;
        max-width: 500px;
        margin: 0 20px;
      }

      .form-group {
        margin-bottom: 20px;
        width: 100%;
      }

      .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #333;
        font-size: 14px;
        font-weight: 500;
      }

      .form-group input,
      .form-group textarea {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        transition: all 0.3s ease;
        outline: none;
        font-size: 14px;
      }

      .form-group textarea {
        height: 120px;
        resize: vertical;
        min-height: 80px;
        max-height: 200px;
      }

      .form-group input:focus,
      .form-group textarea:focus {
        border-color: #1890ff;
        box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
      }

      .submit-btn {
        background: #1890ff;
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        width: 100%;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
      }

      .submit-btn:hover {
        background: #40a9ff;
        transform: translateY(-1px);
      }

      .submit-btn:active {
        transform: translateY(1px);
      }

      .submit-btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 5px;
        height: 5px;
        background: rgba(255, 255, 255, 0.5);
        opacity: 0;
        border-radius: 100%;
        transform: scale(1, 1) translate(-50%);
        transform-origin: 50% 50%;
      }

      .submit-btn:focus:not(:active)::after {
        animation: ripple 1s ease-out;
      }

      @keyframes ripple {
        0% {
          transform: scale(0, 0);
          opacity: 0.5;
        }
        100% {
          transform: scale(20, 20);
          opacity: 0;
        }
      }

      @media (max-width: 768px) {
        .container {
          margin: 0 15px;
          padding: 20px;
        }
      }

      .form-group select {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        transition: all 0.3s ease;
        outline: none;
        font-size: 14px;
        background-color: white;
        cursor: pointer;
      }

      .form-group select:focus {
        border-color: #1890ff;
        box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
      }

      .form-group select option {
        padding: 8px;
      }
    </style>
  </head>
  <script src="crypto-js.min.js"></script>
  <script src="popup.js"></script>
  <body>
    <h3>擎天PC代登</h3>
    <div class="container">
      <div class="form-group">
        <div class="form-group">
          <label for="environment">环境选择</label>
          <select id="environment" class="environment-select">
            <option value="test">测试环境</option>
            <option value="pre">预发环境</option>
            <option value="prod" selected>线上环境</option>
          </select>
        </div>
        <label for="tenant">租户ID</label>
        <input
          type="text"
          id="tenant"
          class="tenant-input"
          name="te"
          placeholder="请输入租户ID"
          value="1001"
        />
      </div>
      <div class="form-group">
        <label for="token">Token</label>
        <textarea id="token" placeholder="请输入token"></textarea>
      </div>
      <button id="submitButton" class="submit-btn">提交</button>
    </div>
  </body>
</html>
